package com.fan.fan;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

public class SplashViewAct extends Activity {

	private Handler handler = new Handler() {

		public void handleMessage(Message msg) {
			if (msg.what == 1) {
				Intent it = new Intent(SplashViewAct.this,
						TestPhoneInfoActivity.class);
				startActivity(it);
				SplashViewAct.this.finish();
			}
		};
	};

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.passview);

		new Thread() {

			@Override
			public void run() {
				// TODO Auto-generated method stub
				try {
					Thread.sleep(2000);
				} catch (Exception e) {
					// TODO: handle exception
				}
				Message msg = new Message();
				msg.what = 1;
				handler.sendMessage(msg);
			}
		}.start();
	};
}
